"""
@Author    : ghenyar
@Time      : 2025/9/29 19:23
@File      : __init__
@Desc      :  数据表模型
"""

from sqlalchemy.orm import DeclarativeBase

from app.core.config import conf

# 处理数据表前缀
table_prefix = (conf.database.prefix.rstrip("_") + "_") if conf.database.prefix else ""


class DatabaseModel(DeclarativeBase):
    __abstract__ = True


# 导入模型
from .role_model import RoleModel
from .admin_model import AdminModel
from .menu_model import MenuModel
from .configs_model import ConfigsModel
from .agreement_model import AgreementModel
